
namespace java com.moly.thrift.person


struct Person{
1:i32 age,
2:string name,
3:i64 id
}

struct PersonMap{

1:string name,
2:Person person
}

exception InvalidOperation{

1:string reason,
2:i16 code,

}

service PersonService{

void say(1:string message),
Person getPersonById(1:i64 id),

list<Person> getPersonsByAge(1:i32 age),

PersonMap getPersonByName(1:string name),
bool isExists(1:Person person) throws (1:InvalidOperation excep),

map<string,string> test(),
set<Person> getAllPersonNoRepeated(),

}